import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { widthLevel1, widthLevel2 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'processRouteCode',
            columnProps: {
                label: '工艺路线编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'processRouteName',
            columnProps: {
                label: '工艺路线名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'processRoute',
            columnProps: {
                label: '工艺路线',
                width: widthLevel2
            }
        },
        {
            modelKey: 'processRouteDesc',
            columnProps: {
                label: '工艺路线描述',
                width: widthLevel1
            }
        },
        {
            modelKey: 'processIdCollection',
            columnProps: {
                label: '工序列表',
                width: widthLevel2
            }
        },
        {
            modelKey: 'materialCode',
            slotName: 'materialCode',
            columnProps: {
                label: '物料编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'remarks',
            columnProps: {
                label: '工艺路线备注',
                width: widthLevel1
            }
        },
        {
            modelKey: 'creator',
            columnProps: {
                label: '创建人',
                width: widthLevel2
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间',
                width: widthLevel1
            }
        },
        {
            modelKey: 'processRemark',
            slotName: 'processRemark',
            columnProps: {
                label: '工艺备注',
                width: widthLevel1
            },
            otherConfig: {
                tip: true,
                tipMsg: '待编辑的工艺路线为工序发生设备或辅助资源变更的工艺，需要重新编辑后生效'
            }
        }
    ]
};
